﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteMaster.Mobile.Master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="Microhard.Permission.Extension" %>
<%@ Import Namespace="Microhard.Framework.MVCHelper" %>
<%@ Import Namespace="Micrhard.FMCG.Server.Models" %>
<%@ Import Namespace="Microhard.Framework.MVCHelper.Mobile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div data-role="navbar">
        <ul>
            <li><a href="#" class="ui-btn-active ui-state-persist">销售订单</a></li>
        </ul>
    </div>
    <%using (Html.BeginForm("SaveCreate", "SaleOrder", FormMethod.Post, new { id = "groupform" }))
      {
    %>
    <%=Html.Hidden("WeixinToken", ViewData["WeixinToken"])%>
    <%=Html.Hidden("WeixinName", ViewData["WeixinName"])%>
    <%--    <%=Html.Hidden("CurrentLoginUserName", Html.GetCurrentUserInfoFromSession().UserName)%>--%>
    <div data-role="fieldcontain" class="ui-hide-label">
        <%=Html.Mobile_AutoComplate("客户(必填)", "CustomerName", "GetSaleLeadByUserName", "SaleLead", "Orders")%>
    </div>
    <div data-role="fieldcontain" class="ui-hide-label">
        <%=Html.Mobile_Textbox("ReceiverName","收货人(必填)",string.Empty) %>
    </div>
    <div data-role="fieldcontain" class="ui-hide-label">
        <%=Html.Mobile_Textbox("ReceiverPhone","收货人联系方式(必填)",string.Empty) %>
    </div>
    <div data-role="fieldcontain" class="ui-hide-label">
        <%=Html.Mobile_Textbox("ReceiverAddress","收货人地址(必填)",string.Empty) %>
    </div>
    <div data-role="fieldcontain" class="ui-hide-label">
        <%=Html.Mobile_TextArea("CustomerHomeInfo","情况描述","10","10",string.Empty) %>
    </div>
    <div data-role="fieldcontain" class="ui-hide-label">
        <%=Html.Mobile_DatePicker("WorkDate","预计安装时间",string.Empty) %>
    </div>
    <div data-role="fieldcontain" class="ui-hide-label">
        <a class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-icon-check ui-btn-icon-left ui-btn-a"
            href="#popupDialog" data-rel="popup" data-transition="pop" data-position-to="window">
            增加产品</a>
        <ul data-role="listview" data-inset="true">
            <li>
                <div class="ui-grid-b">
                    <div class="ui-block-a">
                        产品
                    </div>
                    <div class="ui-block-b">
                        成交单价(元)
                    </div>
                    <div class="ui-block-c">
                        数量
                    </div>
                    <div class="ui-block-d">
                    </div>
                </div>
            </li>
            <li>
                <div class="ui-grid-b">
                    <div class="ui-block-a">
                        SQF-50A
                    </div>
                    <div class="ui-block-b">
                        500.00
                    </div>
                    <div class="ui-block-c">
                        1
                    </div>
                    <div class="ui-block-d">
                        <button class="ui-btn">
                            删除</button>
                    </div>
                </div>
            </li>
            <li>
                <div class="ui-grid-b">
                    <div class="ui-block-a">
                        SRO-B50
                    </div>
                    <div class="ui-block-b">
                        1000.00
                    </div>
                    <div class="ui-block-c">
                        1
                    </div>
                    <div class="ui-block-d">
                        <button class="ui-btn">
                            删除</button>
                    </div>
                </div>
            </li>
        </ul>
    </div>
    <div id="popupDialog" style="max-width: 500px;" data-role="popup" data-theme="b"
        data-overlay-theme="b" data-dismissible="false">
        <div data-role="header" data-theme="a">
            <h1>
                添加新产品</h1>
        </div>
        <div class="ui-content" role="main">
            <div data-role="fieldcontain" class="ui-hide-label">
                <select name="select-custom-4" id="select-custom-4" data-native-menu="false">
                    <option>选择产品...</option>
                    <optgroup label="前置过滤系统">
                        <option value="1">SQF-50A</option>
                        <option value="2">SQF-50B</option>
                        <option value="3">SQF-80B</option>
                        <option value="4">SQF-80A</option>
                    </optgroup>
                    <optgroup label="厨房净水系统">
                        <option value="5">SJ-F60</option>
                        <option value="6">SUF-60</option>
                        <option value="7">SJ-F60x2</option>
                        <option value="7">SJ-F60x2，SJK-60</option>
                    </optgroup>
                    <optgroup label="纯水机/RO机">
                        <option value="5">SRO-B50</option>
                        <option value="6">SNF-B50</option>
                        <option value="7">SRO-T50</option>
                        <option value="7">SRO-B150</option>
                    </optgroup>
                </select>
                <select name="select-custom-1" id="select-custom-1" data-native-menu="false">
                    <option value="1">1</option>
                    <option value="2">2</option>
                    <option value="3">3</option>
                    <option value="4">4</option>
                    <option value="4">5</option>
                    <option value="4">6</option>
                    <option value="4">7</option>
                    <option value="4">8</option>
                    <option value="4">9</option>
                    <option value="4">10</option>
                </select>
                <%=Html.Mobile_Textbox("purshAmount","成交金额(必填)",string.Empty) %>
            </div>
            <a class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-b" href="#" data-rel="back">
                提交</a> <a class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-b" href="#"
                    data-rel="back" data-transition="flow">取消</a>
        </div>
    </div>
    <div data-role="fieldcontain" class="ui-hide-label">
        <%=Html.Mobile_Textbox("purshAmount","应收金额(必填)",string.Empty) %>
    </div>
    <div data-role="fieldcontain" class="ui-hide-label">
        <%=Html.Mobile_Textbox("purshAmount","实收金额(必填)",string.Empty) %>
    </div>
    <div data-role="fieldcontain" class="ui-hide-label">
        <select name="select-native-1" id="select-native-1">
            <option value="1">付款方式.....</option>
            <option value="1">现金</option>
            <option value="2">刷卡</option>
        </select>
    </div>
    <div data-role="fieldcontain" class="ui-hide-label">
        <%=Html.Mobile_Textbox("RecAccountInfo","收款单位(必填)",string.Empty) %>
    </div>
    <input type="submit" value="提交" data-theme="c" id="btnSubmit" name="btnSubmit" />
    <%} %>
</asp:Content>
